package com.lizhi.yun.webservice.impl;


import com.lizhi.yun.webservice.CommonService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/9/15 15:32
 */


@WebService(serviceName = "CommonService", //与接口中指定的name一直
        targetNamespace = "http://webservice.yun.lizhi.com/", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.lizhi.yun.webservice.CommonService"//接口地址
)
@Component
public class CommonServiceImpl implements CommonService {
    @Override
    public String sayHello(String userName) {
        return "Hello, "+ userName;
    }
}
